/**
 * 分账关系 api 封装
 *
 * @Author:    zhoujk
 * @Date:      2025-01-26 06:40:44
 */
import { postRequest } from '/@/lib/axios'

export const allocRelationApi = {
  /**
   * 分页查询
   */
  page: (param) => {
    return postRequest('/b-merchant/alloc_relation/page', param)
  },
  /**
   * 修改分账关系
   */
  update: (param) => {
    return postRequest('/b-merchant/alloc_relation/update', param)
  },
  /**
   * 解绑分账关系
   */
  unbind: (param) => {
    return postRequest('/b-merchant/alloc_relation/unbind', param)
  },
  /**
   * 新增分账关系
   */
  insert: (param) => {
    return postRequest('/b-merchant/alloc_relation/insert', param)
  },
  /**
   * 删除分账关系
   */
  delete: (param) => {
    return postRequest('/b-merchant/alloc_relation/delete', param)
  },
  /**
   * 绑定分账关系
   */
  bind: (param) => {
    return postRequest('/b-merchant/alloc_relation/bind', param)
  },
}
